package com.gpvip.study.simplefactory;

/**
 * @Author：xuchy
 * @Date：2020/2/24
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        //使用阿里支付
        IPay pay = PayFactory.getInstance().createPay(AliPay.class);
        pay.doPay();
    }
}
